// 登录
export function login() {
	uni.request({
		url: '/user/login', //仅为示例，并非真实接口地址。
		method:'GET',
		data: {
			username: 'uni.request',
			password:''
		},
		header: {
		},
		success: (res) => {
			console.log(res.data);
			this.text = 'request success';
		}
	});
}
// 获取用户头像
export getUserAvatar(){
	uni.request({
		url: '/user/get', //仅为示例，并非真实接口地址。
		method:'GET',
		data: {
			username: 'uni.request',
			password:''
		},
		header: {
		},
		success: (res) => {
			console.log(res.data);
			this.text = 'request success';
		}
	});
}